/**  
* @Title: InventoryServiceImpl.java  
* @Package com.ssm.demo.service.impl.inventory  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2019年1月1日  
* @version V1.0  
*/  

package com.ssm.demo.service.impl.inventory;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import com.ssm.demo.dao.inventory.IInventoryDao;
import com.ssm.demo.model.BookReturn;
import com.ssm.demo.model.Inventory;
import com.ssm.demo.service.impl.BaseServiceImpl;
import com.ssm.demo.service.inventory.IInventoryService;

/**  
* @ClassName: InventoryServiceImpl  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author jing Lei  
* @date 2019年1月1日  
*    
*/
@Service
@Repository
public class InventoryServiceImpl extends BaseServiceImpl<Inventory> implements IInventoryService{
	@Resource
    private IInventoryDao iinventoryDao;
	
    @PostConstruct
    private void postconstruct() {
		baseIdo = iinventoryDao;
	}
    /**
	 * 
	 * <p>
	 * Title: findByBookId
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param bookId
	 *            书籍id
	 * @return
	 * @see com.ssm.demo.dao.bookborrow.IBookBorrowDao#findByBookId(int)
	 */
	@Override
	public List<Inventory>  findByBookId(int bookId) {
		return iinventoryDao.findByBookId(bookId);
	}
}
